SonarQube depends on method name and behaviors differently during analysis java “try with resources”

Looks like naming is producing an issue during Sonar check. Is below expected?

public class Main {

    public static void main(String[] args) {
        try (A a = new A()) {
            //failing
            a.createEmptySheet().newMethod();

            //fine
            a.method1().newMethod();

            //failing
            a.newMethod().method1();
        } catch (Exception e) {
        }
    }

    static class A implements AutoCloseable {
        A newMethod() {
            return this;
        }

        A method1() {
            return this;
        }

        A createEmptySheet() {
            return this;
        }

        @Override
        public void close() { }
    }
}

SonarQube version: 7.9.2
openjdk version "11.0.6" 2020-01-14