In a comment to the question the OP clarified that the warning message for the gray-underlined lines says
"PEP 8: expected 2 blank lines, found 1"
Here is a similar question.
The relevant section about blank lines of the PEP-8 style guide says:
Surround top-level function and class definitions with two blank lines.
Your code shows top-level functions that only have a single blank line between them. Add another line between them to make the warning disapear or configure PyCharm to omit those warnings.
There are a few more suggestions/guidlnes on blank lines you can read in the link I added. Just remember that these are guidelines, not hard rules. Your code will run regardless of these suggestions.